package com.xuecheng.orders.service;

import com.xuecheng.orders.model.dto.AddOrderDto;
import com.xuecheng.orders.model.dto.PayRecordDto;
import com.xuecheng.orders.model.dto.PayStatusDto;
import com.xuecheng.orders.model.po.XcPayRecord;

//订单相关接口
public interface OrderService {

    //创建商品订单
    public PayRecordDto createOrder(String userId, AddOrderDto addOrderDto);

    //查询支付交易记录
    public XcPayRecord getPayRecordByPayno(String payNo);

    //查询支付结果
    public PayRecordDto queryPayResult(String payNo);

    //保存支付宝支付结果
    public void saveAliPayStatus(PayStatusDto payStatusDto) ;
}
